<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			 var arr = [9,18,27];
2  
3   var sum = 0;
4   for(var i=0;i<arr.length;i++){
5       sum += arr[i];
6   }
7   console.log(sum);
8   var avg = sum/arr.length;
9   console.log(avg);
		</script>
	</body>
</html>
